# Contribuitor: sick <sick@rape.lol>
# Maintainer: sick <sick@rape.lol>
pkgname=xssstate
pkgver=1.1
pkgrel=0
pkgdesc="A simple utility to get the X screensaver state"
url="https://tools.suckless.org/x/xssstate"
arch="all"
license="MIT"
depends="libxscrnsaver"
makedepends="$depends-dev"
subpackages="$pkgname-doc"
source="https://git.suckless.org/xssstate/snapshot/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make || return 1
}

package() {
	cd "$builddir"
	make PREFIX=/usr DESTDIR=$pkgdir \
	install || return 1
}

sha512sums="c6598fd1da8f3f865e237fa8f6516e57c499408f3567a6f1ee86784b2a032ca0063e925da814117badf6d26d81c103b323a2f30f20c8a019ed6ac3a5622ad8c0  xssstate-1.1.tar.gz"
